package com.example.demo.pattern.state;

import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @program: demo
 * @description: 2.正常运行状态
 * @author: yby
 * @create: 2020-06-22 15:58
 **/
@Component
public class RunningState implements OrderState {

    @Override
    public Object handle() {
        System.out.println("订单进行中。。。");
        return "订单结束...22";
    }
}
